package com.guoxue.dao.impl;

import org.springframework.stereotype.Repository;

import com.guoxue.dao.IUserDistrictDao;
import com.guoxue.domain.UserDistrictVo;
@Repository
public class UserDistrictDaoImpl extends BaseDaoImpl<UserDistrictVo> implements IUserDistrictDao{

	@Override
	public void saveUserDistrict(UserDistrictVo ud) {
		saveOrUpdate(ud);
	}

	@Override
	public UserDistrictVo getUserDistrict(int uid) {
		return get("From UserDistrictVo u WHERE u.uid=?",new Object[] {uid});
	}
	
	

}
